import requests


class IHRMLoginAPI:


    #对登录接口的封装
    @classmethod
    def login_api(cls,login_body):
        login_url = "http://ihrm2-test.itheima.net/api/sys/login"
        login_header = {"Content-Type": "application/json"}
        login_resp = requests.post(url=login_url, headers=login_header, json=login_body)
        return login_resp
